<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * CodeIgniter Model Class
 *
 * @package		application
 * @subpackage	core
 * @category	Libraries
 * @author		Hanafi
 * @version 	1.0
 */
class MY_Model extends CI_Model{
	
	/**
	 * nama tabel
	 * @var String
	 */
	protected $table_name;
	
	/**
	 * nama field-field dalam tabel
	 * @var Array of String
	 */
	protected $table_fields;
	
	/**
	 * nama field-field primary dalam tabel
	 * @var Array of String
	 */
	protected $primary_fields;
	
	function __construct($table_name="", $table_fields="", $primary_fields=""){
		parent::__construct();
		$this->load->database();
		$this->table_name = $table_name;
        $this->table_fields = $table_fields;
        $this->primary_fields = $primary_fields;
	}
}